
<h1>Missione : <?php echo $missione['nome']; ?></h1>
<h2>Introiti <?php echo $nome_mese[ $mese ] . " - " . $anno ?></h2>
<div class="noprint">
<?php if (isset($notice) || $notice = $this->session->flashdata('notification')):?>
<p class="notice"><?php echo $notice;?></p>
<?php endif;?>

<?php if (!$rows1) : ?>
<p class="notice"><?php echo __("Nessuno risultato", $module);?></p>
<?php endif; ?>


<table class="list" cellpadding=3 >
	<thead>
		<tr>
				<th><?php echo __("Sostenitore", $module) ?></th>
				<th><?php echo __("Destinatario", $module) ?></th>
				<th><?php echo __("Categoria", $module) ?></th>
				<th><?php echo __("Importo", $module) ?></th>
				<th><?php echo __("Conto", $module) ?></th>
				<th><?php echo __("Info", $module) ?></th>
				<th><?php echo __("Note", $module) ?></th>
		</tr>
	</thead>
	<tbody>
<?php if ($rows1) : ?>
<?php $totale = 0; ?>
<?php $i = 0; foreach ($rows1 as $row): ?>
<?php if ($i % 2 != 0): $rowClass = 'odd'; else: $rowClass = 'even'; endif;?>
<?php $totale += $row['importo'] ?>
		<tr class="<?php echo $rowClass?>">
				<td><?php echo anchor('adozioni/anagrafica/sostenitori/show/'. $row['id_sostenitore'], $row['sostenitore'] ) ?></td>
				<td><?php  echo anchor('adozioni/anagrafica/assistiti/show/'. $row['id_assistito'], $row['destinatario'] . " ") ?></td>
				<td><?php echo $row['categoria'] ?></td>
				<td align="right"><?php echo format_euro($row['importo']) ?></td>
				<td><?php echo $row['conto'] ?></td>
				<td><?php echo $row['info'] ?></td>
				<td><?php echo $row['note'] ?></td>
				
		</tr>
<?php $i++; endforeach; ?>
<tr><th colspan=3>Totale</th><td align='right' class='total'><?php echo format_euro($totale) ?></td><td colspan='3'>&nbsp;</td></tr>
<?php endif; ?>
</tbody>
</table>	
